Package-level declarations

Types

Link copied to clipboard
@Serializable
enum EntityType : Enum<EntityType>
Link copied to clipboard
@Serializable(with = MaybeInaccessibleMessage.Companion::class)
sealed class MaybeInaccessibleMessage

This object describes a message that can be inaccessible to the bot. It can be one of

Link copied to clipboard
@Serializable
data class Message(val messageId: Long, val messageThreadId: Int? = null, val from: User? = null, val senderChat: Chat? = null, val senderBoostCount: Int? = null, val senderBusinessBot: User? = null, val date: Instant, val businessConnectionId: String? = null, val chat: Chat, val forwardOrigin: MessageOrigin? = null, val isTopicMessage: Boolean? = null, val isAutomaticForward: Boolean? = null, val replyToMessage: Message? = null, val externalReply: ExternalReplyInfo? = null, val replyToStory: Story? = null, val quote: TextQuote? = null, val viaBot: User? = null, val editDate: Instant? = null, val hasProtectedContent: Boolean? = null, val isFromOffline: Boolean? = null, val mediaGroupId: String? = null, val authorSignature: String? = null, val text: String? = null, val entities: List<MessageEntity>? = null, val effectId: String? = null, val linkPreviewOptions: LinkPreviewOptions? = null, val animation: Animation? = null, val audio: Audio? = null, val document: Document? = null, val paidMedia: PaidMediaInfo? = null, val photo: List<PhotoSize>? = null, val sticker: Sticker? = null, val story: Story? = null, val video: Video? = null, val videoNote: VideoNote? = null, val voice: Voice? = null, val caption: String? = null, val captionEntities: List<MessageEntity>? = null, val showCaptionAboveMedia: Boolean? = null, val contact: Contact? = null, val dice: Dice? = null, val game: Game? = null, val poll: Poll? = null, val venue: Venue? = null, val location: Location? = null, val newChatMembers: List<User>? = null, val leftChatMember: User? = null, val newChatTitle: String? = null, val newChatPhoto: List<PhotoSize>? = null, val deleteChatPhoto: Boolean? = null, val groupChatCreated: Boolean? = null, val supergroupChatCreated: Boolean? = null, val channelChatCreated: Boolean? = null, val messageAutoDeleteTimerChanged: MessageAutoDeleteTimerChanged? = null, val migrateToChatId: Long? = null, val migrateFromChatId: Long? = null, val pinnedMessage: MaybeInaccessibleMessage? = null, val invoice: Invoice? = null, val successfulPayment: SuccessfulPayment? = null, val refundedPayment: RefundedPayment? = null, val usersShared: UsersShared? = null, val chatShared: ChatShared? = null, val connectedWebsite: String? = null, val writeAccessAllowed: WriteAccessAllowed? = null, val passportData: PassportData? = null, val proximityAlertTriggered: ProximityAlertTriggered? = null, val boostAdded: ChatBoostAdded? = null, val forumTopicCreated: ForumTopicCreated? = null, val forumTopicEdited: ForumTopicEdited? = null, val forumTopicClosed: ForumTopicClosed? = null, val forumTopicReopened: ForumTopicReopened? = null, val generalForumTopicHidden: GeneralForumTopicHidden? = null, val generalForumTopicUnhidden: GeneralForumTopicUnhidden? = null, val giveawayCreated: GiveawayCreated? = null, val chatBackgroundSet: ChatBackground? = null, val giveaway: Giveaway? = null, val giveawayWinners: GiveawayWinners? = null, val giveawayCompleted: GiveawayCompleted? = null, val videoChatScheduled: VideoChatScheduled? = null, val videoChatStarted: VideoChatStarted? = null, val videoChatEnded: VideoChatEnded? = null, val videoChatParticipantsInvited: VideoChatParticipantsInvited? = null, val webAppData: WebAppData? = null, val replyMarkup: InlineKeyboardMarkup? = null, val hasMediaSpoiler: Boolean? = null) : MaybeInaccessibleMessage, MultipleResponse

This object represents a message.

Link copied to clipboard
@Serializable
data class MessageAutoDeleteTimerChanged(val messageAutoDeleteTime: Int)

This object represents a service message about a change in auto-delete timer settings.

Link copied to clipboard
@Serializable
data class MessageEntity(val type: EntityType, val offset: Int, val length: Int, val url: String? = null, val user: User? = null, val language: String? = null, val customEmojiId: String? = null)

This object represents one special entity in a text message. For example, hashtags, usernames, URLs, etc.

Link copied to clipboard
@Serializable
data class MessageId(val messageId: Long) : MultipleResponse

This object represents a unique message identifier.

Link copied to clipboard
@Serializable
sealed class MessageOrigin

This object describes the origin of a message. It can be one of

Link copied to clipboard
@Serializable
data class MessageReactionCountUpdated(val chat: Chat, val messageId: Long, val date: Instant, val reactions: List<ReactionCount>)

This object represents reaction changes on a message with anonymous reactions.

Link copied to clipboard
@Serializable
data class MessageReactionUpdated(val chat: Chat, val messageId: Long, val user: User? = null, val actorChat: Chat? = null, val date: Instant, val oldReaction: List<ReactionType>, val newReaction: List<ReactionType>)

This object represents a change of a reaction on a message performed by a user.

Link copied to clipboard
@Serializable
data class PreparedInlineMessage(val id: String, val expirationDate: Instant)

Describes an inline message to be sent by a user of a Mini App.